<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head th:include="common/template :: res(title='用户')">
	
</head>
<body >
<script type="text/javascript">
		$(function(){
			$('#formSubimt').click(function(){
				var userType = $('input:radio[name="userType"]:checked').val();
				
				doRequest({
					type:'POST',
					url:'invokeUser',
					data:{
						userType:userType,
						userName:$('#userName').val(),
						mobileNo:$('#mobileNo').val(),
						identNo:$('#identNo').val(),
						realName:$('#realName').val(),
						enterName:$('#enterName').val(),
						orgCode:$('#orgCode').val()
					}
				},function(data){
					console.log(data);
					$('#merchantID').val(data.merchantID);
					$('#sign').val(data.sign);
					$('#request').val(data.requestBody);
					$('#submitForm').submit();
				});
			});
			
		});
	</script>
	
	<div class="page-header">
		<h2>
			江苏亦融在线 <small>支付调试</small>
		</h2>

	</div>
	<ol class="breadcrumb">
		<li><a href="index">首页</a></li>
		<li class="active">用户注册</li>
	</ol>

	<div class="form-horizontal" style="padding-left:20px;" >
		<div class="form-group">
			<label for="name">用户类型</label>
			<div>
				<label class="checkbox-inline"> <input type="radio" name="userType"
					 value="1" checked="checked"/>个人
				</label> <label class="checkbox-inline"> <input type="radio" name="userType"
					 value="2"/>企业
				</label>
			</div>
		</div>
		
		<div class="form-group">
			<label for="mobileNo">手机号</label> <input type="text" class="form-control"
				id="mobileNo" placeholder="请输入手机号"/>
		</div>
		<div class="form-group">
			<label for="identNo">身份证号</label> <input type="text"
				class="form-control" id="identNo" placeholder="请输入身份证号"/>
		</div>
		<div class="form-group">
			<label for="realName">真实姓名</label> <input type="text"
				class="form-control" id="realName" placeholder="请输入真实姓名"/>
		</div>
		<div class="form-group">
			<label for="enterName">企业名称</label> <input type="text"
				class="form-control" id="enterName" placeholder="请输入企业名称"/>
		</div>
		<div class="form-group">
			<label for="orgCode">营业执照编码</label> <input type="text"
				class="form-control" id="orgCode" placeholder="请输入营业执照编码"/>
		</div>
		<div class="form-group">
			
				<button  class="btn btn-default" id="formSubimt">提交</button>
			
		</div>
	</div>

	<div style="display: none;">
		<form action="http://180.168.26.114:20010/p2p-deposit/gateway.htm" method="post" id="submitForm" target="_blank">
		
			<input type="text" name="operationType" id="operationType" value="user.register"/>
			<input type="text" name="merchantID" id="merchantID"/>
			<input type="text" name="sign" id="sign"/>
			<input type="text" name="request" id="request"/>
		</form>
	</div>

</body>
</html>